package com.beiding.workordersystem.common.utils;

import java.util.concurrent.Executors;
import java.util.concurrent.ScheduledExecutorService;

public class Runner {

    private static ScheduledExecutorService service = Executors.newScheduledThreadPool(8);

    public static void exe(Runnable runnable) {
        service.submit(()->{
            try {
                runnable.run();
            } catch (Exception e) {
                e.printStackTrace();
            }
        });
    }

}
